:root {
  --animate-spin: 0.8s;
  --animate-duration: 1s;
  --animate-delay: 1s;
  --animate-repeat: 1;
}

.rotating-image {
  animation: spin --animate-spin infinite linear;
  will-change: transform;
  transform: translateZ(0);
}

body {
  color: hsl(240 10% 3.9%);
  font-size: 14px;
  font-family:
    PingFang SC,
    Source Han Sans CN;
}

.drag {
  -webkit-app-region: drag;
}

.no-drag {
  -webkit-app-region: no-drag;
}

svg {
  vertical-align: initial;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

.rotating-image {
  animation: spin var(--animate-spin) infinite linear;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

// -------------- ui overrides --------------

.custom-radio {
  .ant-radio-wrapper .ant-radio-inner {
    width: 18px;
    height: 18px;
    border-color: #999;
  }
  .ant-radio-wrapper .ant-radio-checked {
    .ant-radio-inner {
      background-color: transparent;
      background-image: url();
      border: none;
      &::after {
        display: none;
      }
    }
  }
  .ant-radio-wrapper:hover .ant-radio-inner {
    border-color: initial;
  }
}
